﻿<%@ Page Title="Usuários x Regra" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="UsuarioXRegras.aspx.cs" Inherits="AcadPosApp.Seguranca.UsuarioXRegras" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="row">
        <div class="col-md-4">
            <asp:Panel ID="Panel5" runat="server" BackColor="White" GroupingText="Regras">
                <asp:GridView ID="gvwRegras" runat="server" Width="33.3%" EmptyDataText="Dados não localizados..."
                    CssClass="mGrid" GridLines="Vertical" 
                    OnRowDeleting="gvwRegras_RowDeleting" 
                    OnSelectedIndexChanged="gvwRegras_SelectedIndexChanged">
                    <Columns>
                        <asp:CommandField ButtonType="Image" SelectImageUrl="~/Imagens/select.png" SelectText="►"
                            ShowSelectButton="True">
                            <ControlStyle Width="25px" />
                            <ItemStyle HorizontalAlign="Center" Width="30px" />
                        </asp:CommandField>
                        <asp:CommandField ButtonType="Image" DeleteImageUrl="~/Imagens/delete.png" DeleteText="X"
                            SelectImageUrl="~/Imagens/delete.png" ShowDeleteButton="True">
                            <ControlStyle BorderWidth="1px" Font-Bold="True" Width="25px" />
                            <ItemStyle HorizontalAlign="Center" Width="30px" />
                        </asp:CommandField>
                    </Columns>
                    <EmptyDataTemplate>
                        Não existem regras cadastradas!
                    </EmptyDataTemplate>
                    <AlternatingRowStyle BackColor="#EEE9E9" />
                    <FooterStyle BackColor="#CCCCCC" />
                    <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                    <PagerStyle ForeColor="Black" HorizontalAlign="Center" CssClass="pagination" />
                    <SelectedRowStyle BackColor="#1E90FF" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#808080" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#383838" />
                </asp:GridView>
            </asp:Panel>
        </div>
        <div class="col-md-4">
            <asp:Panel ID="Panel6" runat="server" BackColor="White" GroupingText="Usuários">
                <asp:GridView ID="gvwListUsuarios" runat="server" Width="33.3%" AutoGenerateColumns="False"
                    CssClass="mGrid" OnSelectedIndexChanged="gvwListUsuarios_SelectedIndexChanged">
                    <Columns>
                        <asp:CommandField ButtonType="Image" SelectImageUrl="~/Imagens/select.png" SelectText="►"
                            ShowSelectButton="True">
                            <ControlStyle Width="25px" />
                            <ItemStyle HorizontalAlign="Center" Width="30px" />
                        </asp:CommandField>
                        <asp:BoundField DataField="UserName" HeaderText="Usuário">
                            <ItemStyle HorizontalAlign="Center" Width="55%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Email" HeaderText="Email">
                            <ItemStyle Width="40%" />
                        </asp:BoundField>
                    </Columns>
                    <EmptyDataTemplate>
                        Não existem usuários cadastrados!
                    </EmptyDataTemplate>
                    <AlternatingRowStyle BackColor="#EEE9E9" />
                    <FooterStyle BackColor="#CCCCCC" />
                    <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                    <PagerStyle ForeColor="Black" HorizontalAlign="Center" CssClass="pagination" />
                    <SelectedRowStyle BackColor="#1E90FF" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#808080" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#383838" />
                </asp:GridView>
            </asp:Panel>
        </div>
        <div class="col-md-4">
            <asp:Panel ID="Panel7" runat="server" BackColor="White" GroupingText="Usuário e Regra">
                <asp:GridView ID="gvwUsuarios" runat="server" Width="33.3%" AutoGenerateColumns="False"
                    CssClass="mGrid" OnRowDeleting="gvwUsuarios_RowDeleting">
                    <Columns>
                        <asp:CommandField ButtonType="Image" DeleteImageUrl="~/Imagens/delete.png" DeleteText="X"
                            SelectImageUrl="~/Imagens/delete.png" ShowDeleteButton="True">
                            <ControlStyle BorderWidth="1px" Font-Bold="True" Width="25px" />
                            <ItemStyle HorizontalAlign="Center" Width="30px" />
                        </asp:CommandField>
                        <asp:BoundField DataField="UserName" HeaderText="Usuário">
                            <ItemStyle HorizontalAlign="Center" Width="60%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Email" HeaderText="Email">
                            <ItemStyle HorizontalAlign="Left" Width="45%" />
                        </asp:BoundField>
                    </Columns>
                    <EmptyDataTemplate>
                        Não existem usuários cadastrados à regras selecionada!
                    </EmptyDataTemplate>
                    <AlternatingRowStyle BackColor="#EEE9E9" />
                    <FooterStyle BackColor="#CCCCCC" />
                    <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                    <PagerStyle ForeColor="Black" HorizontalAlign="Center" CssClass="pagination" />
                    <SelectedRowStyle BackColor="#1E90FF" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#808080" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#383838" />
                </asp:GridView>
            </asp:Panel>
        </div>
    </div>
</asp:Content>
